package com.ysy.tz.mfg.entity;

public class MenuEntity extends BaseEntity {
    private String menuCode;
    private String menuName;
    private String remark;
    private String parentMenuCode;
    private String menuView;
    private String imageName;
    private boolean authority;
    private Integer userId;

    public MenuEntity() {
    }

    public String getMenuCode() {
        return this.menuCode;
    }

    public String getMenuName() {
        return this.menuName;
    }

    public String getRemark() {
        return this.remark;
    }

    public String getParentMenuCode() {
        return this.parentMenuCode;
    }

    public String getMenuView() {
        return this.menuView;
    }

    public String getImageName() {
        return this.imageName;
    }

    public boolean isAuthority() {
        return this.authority;
    }

    public Integer getUserId() {
        return this.userId;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setParentMenuCode(String parentMenuCode) {
        this.parentMenuCode = parentMenuCode;
    }

    public void setMenuView(String menuView) {
        this.menuView = menuView;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public void setAuthority(boolean authority) {
        this.authority = authority;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof MenuEntity)) {
            return false;
        } else {
            MenuEntity other = (MenuEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.isAuthority() != other.isAuthority()) {
                return false;
            } else {
                label97: {
                    Object this$userId = this.getUserId();
                    Object other$userId = other.getUserId();
                    if (this$userId == null) {
                        if (other$userId == null) {
                            break label97;
                        }
                    } else if (this$userId.equals(other$userId)) {
                        break label97;
                    }

                    return false;
                }

                Object this$menuCode = this.getMenuCode();
                Object other$menuCode = other.getMenuCode();
                if (this$menuCode == null) {
                    if (other$menuCode != null) {
                        return false;
                    }
                } else if (!this$menuCode.equals(other$menuCode)) {
                    return false;
                }

                Object this$menuName = this.getMenuName();
                Object other$menuName = other.getMenuName();
                if (this$menuName == null) {
                    if (other$menuName != null) {
                        return false;
                    }
                } else if (!this$menuName.equals(other$menuName)) {
                    return false;
                }

                label76: {
                    Object this$remark = this.getRemark();
                    Object other$remark = other.getRemark();
                    if (this$remark == null) {
                        if (other$remark == null) {
                            break label76;
                        }
                    } else if (this$remark.equals(other$remark)) {
                        break label76;
                    }

                    return false;
                }

                Object this$parentMenuCode = this.getParentMenuCode();
                Object other$parentMenuCode = other.getParentMenuCode();
                if (this$parentMenuCode == null) {
                    if (other$parentMenuCode != null) {
                        return false;
                    }
                } else if (!this$parentMenuCode.equals(other$parentMenuCode)) {
                    return false;
                }

                Object this$menuView = this.getMenuView();
                Object other$menuView = other.getMenuView();
                if (this$menuView == null) {
                    if (other$menuView != null) {
                        return false;
                    }
                } else if (!this$menuView.equals(other$menuView)) {
                    return false;
                }

                Object this$imageName = this.getImageName();
                Object other$imageName = other.getImageName();
                if (this$imageName == null) {
                    if (other$imageName != null) {
                        return false;
                    }
                } else if (!this$imageName.equals(other$imageName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof MenuEntity;
    }

    public int hashCode() {
        int result = 1;
        result = result * 59 + (this.isAuthority() ? 79 : 97);
        Object $userId = this.getUserId();
        result = result * 59 + ($userId == null ? 43 : $userId.hashCode());
        Object $menuCode = this.getMenuCode();
        result = result * 59 + ($menuCode == null ? 43 : $menuCode.hashCode());
        Object $menuName = this.getMenuName();
        result = result * 59 + ($menuName == null ? 43 : $menuName.hashCode());
        Object $remark = this.getRemark();
        result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
        Object $parentMenuCode = this.getParentMenuCode();
        result = result * 59 + ($parentMenuCode == null ? 43 : $parentMenuCode.hashCode());
        Object $menuView = this.getMenuView();
        result = result * 59 + ($menuView == null ? 43 : $menuView.hashCode());
        Object $imageName = this.getImageName();
        result = result * 59 + ($imageName == null ? 43 : $imageName.hashCode());
        return result;
    }

    public String toString() {
        return "MenuEntity(menuCode=" + this.getMenuCode() + ", menuName=" + this.getMenuName() + ", remark=" + this.getRemark() + ", parentMenuCode=" + this.getParentMenuCode() + ", menuView=" + this.getMenuView() + ", imageName=" + this.getImageName() + ", authority=" + this.isAuthority() + ", userId=" + this.getUserId() + ")";
    }
}
